﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace phpBB
{
    public class User
    {
        private int _id;
        private string _login;
        private string _password;

        public int ID { get; set; }
        public string Login { get; set; }
        public string Password { get; set; }

        public User()
        {
            _id = -1;
            _login = string.Empty;
            _password = string.Empty;
        }
        public User(int ID, string Login, string Password)
        {
            _id = ID;
            _login = Login;
            _password = Password;
        }
    }
    public class Forum
    {
        private int _id;
        private string _name;
        private string _url;
        private string _forumType;
        
        public int ID{ get; set; } 
        public string Name{ get; set; }
        public string Url{ get; set; }
        public string ForumType { get; set; }

        public Forum()
        {
            _id = -1;
            _name = string.Empty;
            _url = string.Empty;
            _forumType = string.Empty;
        }
        public Forum(int ID, string Name, string Url, string ForumType)
        {
            _id = ID;
            _name = Name;
            _url = Url;
            _forumType = ForumType;
        }
    }
    public class SiteObject
    {
        private int _id;
        private string _name;
        private string _url;
        private string _siteType;
        private User _user;
        private List<Forum> _forums;

        public int ID { get; set; }
        public string Name { get; set; }
        public string Url { get; set; }
        public string SiteType { get; set; }
        public User UserObject { get; set; }
        public List<Forum> Forums { get; set; }

        public SiteObject()
        {
            _id = -1;
            _name = string.Empty;
            _url = string.Empty;
            _siteType = string.Empty;
            _user = new User();
            _forums = new List<Forum>();

        }
        public SiteObject(int ID, string Name, string Url, string SiteType, User UserObject, List<Forum> Forums)
        {
            _id = ID;
            _name = Name;
            _url = Url;
            _siteType = SiteType;
            _user = UserObject;
            _forums = Forums;
        }
    }
}
